package com.bbird.od.finance.service.domain;

import com.bbird.od.finance.service.models.type.BankType;

/**
 * @author ziyang Kuang
 * @date 2020/11/16
 * @describe
 */

public class ReconciliationHandlerFactory {

    public static ReconciliationService create(BankType bankType) {
        switch (bankType) {
            case JD:
                return new JDReconciliationHandler();
            case TM:
                return new TMReconciliationHandler();
            case PDD:
                return new PDDReconciliationHandler();
            case DY:
                return new DYReconciliationHandler();
        }
        return null;
    }

}
